package jdbc1;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Properties;

public class TestConn {
    public static void main(String[] args) throws Exception {
        Properties properties = new Properties();
        FileInputStream fileInputStream = new FileInputStream("src\\resourse.properties");
        properties.load(fileInputStream);
        String user = properties.getProperty("user");
        String password = properties.getProperty("password");
        String driver = properties.getProperty("driver");
        String url = properties.getProperty("url");
        System.out.println("user = " + user);
        System.out.println("password = " + password);
        System.out.println("driver = " + driver);
        System.out.println("url = " + url);
    }
}
